package com.evil.application.pojo.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;

import java.io.Serial;
import java.io.Serializable;
import java.util.Date;

/**
 * 应用表单控件关联表
 *
 * @author liyang
 * @date 2023-09-25 15:14
 */
@Data
@TableName(value = "evil_application_form_control_related")
public class ApplicationFormControlRelated implements Serializable {
    /**
     * id
     */
    @TableId(value = "control_related_id", type = IdType.AUTO)
    private Long controlRelatedId;

    /**
     * 企业id
     */
    @TableField(value = "enterprise_id")
    private Long enterpriseId;

    /**
     * 表单id
     */
    @TableField(value = "form_id")
    private Long formId;

    /**
     * 表单id
     */
    @TableField(value = "control_id")
    private Long controlId;

    /**
     * 控件code
     */
    @TableField(value = "control_code")
    private String controlCode;

    /**
     * 关联表单id
     */
    @TableField(value = "related_form_id")
    private Long relatedFormId;

    /**
     * 关联表单控件id
     */
    @TableField(value = "related_control_id")
    private Long relatedControlId;

    /**
     * 是否已删除(0:否, 1:是)
     */
    @TableField(value = "is_deleted")
    private Integer isDeleted;

    /**
     * 创建人
     */
    @TableField(value = "creator_id")
    private Long creatorId;

    /**
     * 创建人名字
     */
    @TableField(value = "creator_name")
    private String creatorName;

    /**
     * 修改操作人
     */
    @TableField(value = "modifier_id")
    private Long modifierId;

    /**
     * 修改操作人名字
     */
    @TableField(value = "modifier_name")
    private String modifierName;

    /**
     * 创建时间
     */
    @TableField(value = "created")
    private Date created;

    /**
     * 更新时间
     */
    @TableField(value = "updated")
    private Date updated;

    @Serial
    private static final long serialVersionUID = 1L;
}